﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace EGEHaina.Areas.People.Models
{
    public class Company
    {
        public int CompanyId { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public string Country { get; set; }

        public string City { get; set; }

        public string State { get; set; }

        public string Address1 { get; set; }

        public string Address2 { get; set; }

        [DataType(DataType.PhoneNumber)]
        public string Phone { get; set; }

        public string Fax { get; set; }

        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        [DataType(DataType.Url)]
        public string WebSite { get; set; }

        public string PostalCode { get; set; }

        [Required]
        public int CompanyTypeId { get; set; }
        public virtual CompanyType CompanyType { get; set; }

        public string TaxId { get; set; }

        public virtual ICollection<People> Peoples { get; set; }

        public string CompanyLogo { get; set; }
    }
}